import { Breadcrumb } from 'antd'
import './bread.scss'
import { TBread } from '../../Type/type'
const Bread = (props: TBread) => {
  const { bread } = props
  return (
    <div className="bread">
      <Breadcrumb>
        {bread.map((item, index) => (
          <Breadcrumb.Item key={index}>{item}</Breadcrumb.Item>
        ))}
      </Breadcrumb>
    </div>
  )
}
export default Bread
